package com.mdinfo.gw.door.bean

import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable
import java.util.*

/**
 * Created by Administrator on 2018/1/8.
 * 门禁实体类
 */
@TableName("door_access")
data class DoorAccess(
        var id:Int = 0,
        var devId:String = "",              //设备编号
        var name:String = "",               //门禁名称
        var deptId:Int = 0,                 //部门id
        var createTime:Date? = null,        //创建时间
        var lng:Double = 0.0,               //经度
        var lat:Double = 0.0,                //纬度
        var onLine:Int = 0,                  //门禁控制器是否在线(0:否,1:是)
        var host:String = "",               //控制器地址
        var port:Int? = null,                    //控制器端口
        var devBrand:String = "",           //设备品牌
        var devModel:String = "",           //设备型号
        var devVersion:String = ""          //设备版本

) :Model<DoorAccess>(){
    override fun pkVal(): Serializable {
        return this.id
    }

}